<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * UserOpenid
 *
 * @ORM\Table(name="user_openid", options={"comment":"用户和子用户openid绑定关系--用于子用户注册时候建立关系"})
 * @ORM\Entity()
 */
class UserOpenid
{
    
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\User", inversedBy="id")
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     */
    private $user;

    /**
     * @var string
     *
     * @ORM\Column(name="wx_open_id", type="string", length=45,  options={"comment"="wx open_id  子用户open_id"})
     */
    private $wx_open_id;
    
}
